package cn.sczc.jh.client.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

@TableName("t_user_role_ref")
public class UserRoleRef {
	@TableId(value = "id_")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;

	@TableField(value = "user_id")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long userId;

	@TableField(value = "role_id")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long roleId;
	@TableField(value = "create_time")
	private Date createTime;
	@TableField(value = "create_by")
	private Long createBy;
	@TableField(value = "update_time")
	private Date updateTime;
	@TableField(value = "update_by")
	private Long updateBy;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Long getCreateBy() {
		return createBy;
	}

	public void setCreateBy(Long createBy) {
		this.createBy = createBy;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Long getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(Long updateBy) {
		this.updateBy = updateBy;
	}

}
